<?php

namespace app\modules\Basic\models;

use Yii;

/**
 * This is the model class for table "hotel_brand".
 *
 * @property int $id
 * @property string $en_name 品牌英文名
 * @property string $zh_name 品牌中文名
 */
class HotelBrand extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'hotel_brand';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['en_name'], 'string', 'max' => 64],
            [['zh_name'], 'string', 'max' => 32],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'en_name' => Yii::t('app.basic', 'En Name'),
            'zh_name' => Yii::t('app.basic', 'Zh Name'),
        ];
    }
}
